<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SCRPE001A</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/style.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/atributos.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/antigo/css/botoes.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/antigo/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/antigo/css/bootstrap-theme.min.css">
<script src="${pageContext.request.contextPath}/resources/antigo/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/antigo/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/antigo/js/sispfuncoes.js"></script>
<script type="text/javascript">
	botoes = "1001000000";
	function validateForm() {
		var adt = document.getElementById("adt").value;
		var afi = document.getElementById("afi").value;
		var wop1 = document.getElementById("wop1").value;
		var wop2 = document.getElementById("wop2").value;

		if (wop1.trim() == "" && wop2.trim() == "") {
			alert("MARQUE X PARA MOSTRAR NA TELA OU IMPRIMIR");
			document.getElementById("wop1").focus();
			return false;
		}
		if (adt < 1998) {
			alert("ANO INVALIDO < 1998");
			document.getElementById("adt").focus();
			return false;
		}
		if (afi < 1998) {
			alert("ANO INVALIDO < 1998");
			document.getElementById("afi").focus();
			return false;
		}
		return true;
	}
</script>
</head>
<body onunload="" onkeydown="return voltar('${pageContext.request.contextPath}/antigo/scrpp001/executar', event);">
	<form id="form" action="${scrpe001A.navegar}" onsubmit="return validateForm();" method="post">
		<jsp:include page="/resources/antigo/include/header.jsp" />
		<div id="conteudo">
			<div class="content">
				<center>
					<div id="container" style="height: auto; width: 800px; float: inherit;">
						<div id="espaco" style="height: 75%; width: 100%; margin: 0 auto;">
							<br />
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 75px; float: left">
									<label class="control-label">SESEC</label>
								</div>
								<div align="left" class="col-lg-8" style="width: 630px; float: left">
									<label class="control-label"> - SECRETARIA DE ESTADO DA SEGURANCA CIDADA / SEATI </label>
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 75px; float: left">
									<label class="control-label">SISP</label>
								</div>
								<div align="left" class="col-lg-8" style="width: 635px; float: left">
									<label class="control-label"> / INSTITUTO DE IDENTIFICACAO</label>
								</div>
								<div align="right" style="width: 100px; float: left">
									<label class="control-label">${dataCorrente}</label>
								</div>
							</div>
							<div class="row">
								<div align="left" class="col-lg-1" style="width: 695px; float: left">
									<label class="control-label">ESTATISTICAS DOS ATESTADOS DE ANTECEDENTES (DIGITADOS) </label>
								</div>
								<div align="right" class="col-lg-1" style="width: 100px; float: left">
									<label class="control-label">${horaCorrente}</label>
								</div>
							</div>
							<br />
							<div class="row">
								<label class="control-label mensagem" id="mensagem">${scrpe001A.mensagem}</label>
							</div>
							<br />
							<div class="row">
								<div align="right" class="col-lg-4" style="width: 350px; float: left">
									<label class="control-label"> DATA DATINI:</label>
								</div>
								<div align="left" style="width: 30px; float: left">
									<input type="text" id="ddt" onkeypress="return somenteNumero(event)" name="scrpe001A.ddt" class="form-control input-cb" value="${scrpe001A.ddt}" maxlength="2" size="2" />
								</div>
								<div align="center" style="width: 20px; float: left">
									<label class="control-label">/</label>
								</div>
								<div align="left" style="width: 30px; float: left">
									<input type="text" id="mdt" onkeypress="return somenteNumero(event)" name="scrpe001A.mdt" class="form-control input-cb" value="${scrpe001A.mdt}" maxlength="2" size="2" />
								</div>
								<div align="center" style="width: 20px; float: left">
									<label class="control-label">/</label>
								</div>
								<div align="left" style="width: 40px; float: left">
									<input type="text" id="adt" onkeypress="return somenteNumero(event)" name="scrpe001A.adt" class="form-control input-cb" value="${scrpe001A.adt}" maxlength="4" size="4" />
								</div>
							</div>
							<br />
							<div class="row">
								<div align="right" class="col-lg-4" style="width: 350px; float: left">
									<label class="control-label"> DATA DATFIM:</label>
								</div>
								<div align="left" style="width: 30px; float: left">
									<input type="text" id="dfi" onkeypress="return somenteNumero(event)" name="scrpe001A.dfi" class="form-control input-cb" value="${scrpe001A.dfi}" maxlength="2" size="2" />
								</div>
								<div align="center" style="width: 20px; float: left">
									<label class="control-label">/</label>
								</div>
								<div align="left" style="width: 30px; float: left">
									<input type="text" id="mfi" onkeypress="return somenteNumero(event)" name="scrpe001A.mfi" class="form-control input-cb" value="${scrpe001A.mfi}" maxlength="2" size="2" />
								</div>
								<div align="center" style="width: 20px; float: left">
									<label class="control-label">/</label>
								</div>
								<div align="left" style="width: 40px; float: left">
									<input type="text" id="afi" onkeypress="return somenteNumero(event)" name="scrpe001A.afi" class="form-control input-cb" value="${scrpe001A.afi}" maxlength="4" size="4" />
								</div>
							</div>
							<br />
							<div class="row">
								<div align="right" class="col-lg-4" style="width: 350px; float: left">
									<label class="control-label">NUMERO POSTO:</label>
								</div>
								<div align="left" class="col-lg-4" style="width: 130px; float: left">
									<input type="text" id="iposto" onkeypress="return somenteNumero(event)" name="scrpe001A.iposto" class="form-control input-cb" value="${scrpe001A.iposto}" maxlength="3" size="3" />
								</div>
								<div align="left" class="col-lg-4" style="width: 270px; float: left">
									<label class="control-label">(SE TODOS POSTOS, BRANCO)</label>
								</div>
							</div>
							<br />
							<div class="row">
								<div align="right" class="col-lg-4" style="width: 350px; float: left">
									<label class="control-label">MOSTRA NA TELA:</label>
								</div>
								<div align="left" class="col-lg-4" style="width: 65px; float: left">
									<input type="text" id="wop1" name="scrpe001A.wop1" class="form-control input-cb" value="${scrpe001A.wop1}" maxlength="1" size="1" />
								</div>
								<div align="right" class="col-lg-4" style="width: 70px; float: left">
									<label class="control-label">IMPRIME:</label>
								</div>
								<div align="left" class="col-lg-4" style="width: 65px; float: left">
									<input type="text" id="wop2" name="scrpe001A.wop2" class="form-control input-cb" value="${scrpe001A.wop2}" maxlength="1" size="1" />
								</div>
								<div align="left" class="col-lg-4" style="width: 120px; float: left">
									<label class="control-label">(MARQUE X)</label>
								</div>
								<div align="center" class="col-lg-1" style="width: 100px; float: left">
									<input type="submit" class="btn btn-default" value="Processar"  />
								</div>
							</div>
							<br />
							<br />
							<label class="corpo_c">______________________________________________________________________________________________________________________________________</label>
							<div class="row">
								<div align="center" class="col-lg-4" style="width: 200px; float: left">
									<label class="control-label">ESC p/ Voltar</label>
								</div>
								<div align="center" class="col-lg-1" style="width: 420px; float: left">
									<label class="control-label">${scrpe001A.jEmpresaj} - ${scrpe001A.jProgramaj}</label>
								</div>
								<div align="center" class="col-lg-1" style="width: 200px; float: left">
									<label class="control-label">CTRL + Z p/ Sair</label>
								</div>
							</div>
							<input type="hidden" id="funcao" name="scrpe001A.funcao" value="${ scrpe001A.funcao }" maxlength="1" size="1" />
							<input type="hidden" id="campofocus" name="scrpe001A.campofocus" value="${ scrpe001A.campofocus }" maxlength="30" size="30" />
							<input type="hidden" id="navegar" name="scrpe001A.navegar" value="${ scrpe001A.navegar }" />
						</div>
					</div>
				</center>
			</div>
		</div>
		<jsp:include page="/resources/antigo/include/footer.jsp" />
	</form>
</body>
</html>